package com.zzxy.spring12.test;

public class test {
    public static void  main(String[] args) throws Exception{
        BasicDateSource dataSource = new BasicDateSource();
        dataSource.setUrl("jdba:mysql:///spring12?serviceTimezone=UTC");
        dataSource.SetDriverClassName("com.mysql.cj.jdbc.Driver");
        dataSource.setUsername("root");
        dataSource.setPassword("123456");
        jdbcTemplate jdbcTemplate = new jdbcTemplate(dataSource);
        jdbcTemplate.update("insert into t_user values(null.?,?)","zhangwuji","123");
    }
}
